import React from 'react'
import { $pre } from "../../../../http/http"
import { Swiper } from "antd-mobile"

export default function banner(props) {
  let { banner } = props
  return (
    <Swiper autoplay style={{"height":"3.8rem"}}>
      {
        banner.map(item => {

          return <Swiper.Item key={item.id}>
            <img style={{width:"100%",height:"100%"}} src={$pre + item.img} alt="" />
          </Swiper.Item>
        })
      }
    </Swiper>
  )
}
